package study.itheima.dao;

import org.apache.ibatis.annotations.Select;
import study.itheima.domain.Items;
import study.itheima.domain.Orders;

import java.util.List;

public interface ItemsMap {
    @Select("select * from items WHERE id in(select items_id from orderdetail WHERE orders_id=#{id})")
    List<Items> findByOid();
}
